<?php
declare (strict_types = 1);

namespace app\index\validate;

use think\Validate;

class Exchange extends Validate
{
    protected $rule = [
        "account" => "require",
        "take_account" => "require",
        "amount" => "require|gt:0|integer",
        "pay_password" => "require"
    ];

    protected $message = [
        'account.require' => '请选择转出账户',
        'take_account.require' => '请选择转入账户',
        'amount.require' => '请输入转换金额',
        'amount.gt' => '转换金额有误',
        'amount.integer' => '转换金额必须为整数',
        'pay_password.require' => '请输入支付密码'
    ];
}